public class demo02 {

    public static void main(String[] args) {

        String str="";

        System.out.println(str=="");

        System.out.println("".equals(str));


        String str2="11";
        String str3="11";

        String str4=new String("11");

        System.out.println(str2==str3);

        System.out.println(str2==str4);





    }
}
